
public class Badge {
    private static int totalNumber = 0;

    private String name;

    public Badge() {
        this("anonymous");
    }

    public Badge(String name) {
        this.name = name;
        totalNumber++;
        System.out.println("totalNumber: " + totalNumber + ", time = " + System.currentTimeMillis());
    }

    public static void main(String[] args) {
        Badge badge = new Badge();
        Badge badgeTmp = new Badge("AAA");
        System.out.println(badge.name);
        System.out.println(badgeTmp.name);

    }
}
